﻿<UserControl x:Class="Zcu.PanelComposer.Views.Pages.NewSolutionProjectView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
              xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel>
        <Label x:Name="DisplayName" Content="Title" FontSize="16" DockPanel.Dock="Top" />

        <Grid DockPanel.Dock="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.25*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="0.25*" />
            </Grid.ColumnDefinitions>
            <Button Grid.Column="0" x:Name="BackAction" Content="Back" />
            <Button Grid.Column="2" x:Name="SaveAction" Content="Save"  />
        </Grid>

        <GroupBox Header="Basic data" Width="400" Padding="10">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.4*" />
                    <ColumnDefinition Width="0.6*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                    <RowDefinition />
                </Grid.RowDefinitions>

                <Label Content="Project:" Grid.Column="0" />
                <ComboBox x:Name="Project" SelectedItem="{Binding SelectedProject}" 
                          DisplayMemberPath="DisplayName"
                          Height="25" Grid.Column="1" Grid.Row="0" Style="{StaticResource ValidateStyle}"/>

                <Label Content="X axis translate:" Grid.Column="0" Grid.Row="1" />
                <xctk:DoubleUpDown x:Name="XTranslate" Grid.Column="1" Grid.Row="1" 
                                Value="{Binding XTranslate}" Height="25"
                                Style="{StaticResource ValidateStyle}"/>

                <Label Content="Y axis translate:" Grid.Column="0" Grid.Row="2" />
                <xctk:DoubleUpDown x:Name="YTranslate" Grid.Column="1" Grid.Row="2" 
                                Value="{Binding YTranslate}" Height="25"
                                Style="{StaticResource ValidateStyle}"/>

                <Label Content="Z axis translate:" Grid.Column="0" Grid.Row="3" />
                <xctk:DoubleUpDown x:Name="ZTranslate" Grid.Column="1" Grid.Row="3" 
                                Value="{Binding ZTranslate}" Height="25"
                                Style="{StaticResource ValidateStyle}"/>

                <Label Content="Angle:" Grid.Column="0" Grid.Row="4" />
                <xctk:DoubleUpDown x:Name="Angle" Grid.Column="1" Grid.Row="4" 
                                Increment="1" Minimum="0" Maximum="360"
                                Value="{Binding Angle}" Height="25"
                                Style="{StaticResource ValidateStyle}"/>
            </Grid>
        </GroupBox>
    </DockPanel>
</UserControl>
